﻿@{
    ViewBag.Title = "Home Page";
}
@model IEnumerable<DE_MVC_WyFy.Areas.Administrator.Models.ProductType>
<div class="pro-title">
    <span class="pro">Thời trang nam</span> <span class="detail">@Html.ActionLink("Xem thêm", "Detail", new { controller = "ProductType", id = 2 })</span>
    <div class="nav">
        <ul>
            @foreach (var item in Model)
            {
                if (item.IsMale == true && item.Parent == 0)
                {
                <li>
                    @Html.ActionLink(item.ProductTypeName, "Detail", new { controller = "ProductType", id = item.ProductTypeID })</li>
     
                }

            }
        </ul>
    </div>
</div>
<div class="products">
    <div class="cl">
        &nbsp;
    </div>
    <ul>
        @foreach (var item in ViewBag.ThoiTrangNam)
        {   
            <li><a href="@Url.Content(String.Format("~/Product/Detail/{0}", item.ID))">
                <img src="@DE_MVC_WyFy.BLL.AppHelper.ImageFashsion@item.ProductImage" />
            </a>
                <div class="product-info">
                    <h3>@item.Name</h3>
                    <div class="product-desc">
                        <h4>@DE_MVC_WyFy.BLL.AppHelper.Sex(item)</h4>
                        <p>
                            @DE_MVC_WyFy.BLL.AppHelper.Description(item.Description)
                        </p>
                        <strong class="price">@DE_MVC_WyFy.BLL.AppHelper.Price(item.Price)</strong>
                    </div>
                </div>
            </li>
        }
    </ul>
    <div class="cl">
        &nbsp;
    </div>
</div>
<div class="clear"></div>
<div class="pro-title">
    <span class="pro">Thời trang nữ</span> <span class="detail"><a href="">Xem thêm</a></span>
    <div class="nav">
        <ul>
            @foreach (var item in Model)
            {
                if (!item.IsMale && item.Parent == 0)
                {
                <li>
                    @Html.ActionLink(item.ProductTypeName, "Detail", new { controller = "ProductType", id = item.ProductTypeID })</li>
                }

            }
        </ul>
    </div>
</div>

@Html.RenderPartial("ProductSummary", ViewBag.ThoiTrangNu);



@*<div class="products">
    <div class="cl">
        &nbsp;
    </div>
    <ul>
        @foreach (var item in ViewBag.ThoiTrangNu)
        {   
            <li><a href="@Url.Content(String.Format("~/Product/Detail/{0}", item.ID))">
                <img src="@DE_MVC_WyFy.BLL.AppHelper.ImageFashsion@item.ProductImage" />
            </a>
                <div class="product-info">
                    <h3>@item.Name</h3>
                    <div class="product-desc">
                        <h4>@DE_MVC_WyFy.BLL.AppHelper.Sex(item)</h4>
                        <p>
                            @DE_MVC_WyFy.BLL.AppHelper.Description(item.Description)
                        </p>
                        <strong class="price">@DE_MVC_WyFy.BLL.AppHelper.Price(item.Price)</strong>
                    </div>
                </div>
            </li>
        }
    </ul>
    <div class="cl">
        &nbsp;
    </div>
</div>*@



